package level02.one;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

/**
 * 查询所有图书：根据图书编号查询商品；
 */
public class Message {
    public static void message(File file) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new FileReader(file));
        String line;
        while ((line = bufferedReader.readLine()) != null) {
            System.out.println(line);
            System.out.println("------图书信息------");
        }
    }
}
